package com.cn.chpater013;

import java.util.Arrays;

public class paiXuDemo {
    String [] names={"tom","jack","merry","smith","tony"};
    public void paiXu(){
    	Arrays.sort(names); 
    	for (int i = 0; i < names.length; i++) {
    		System.out.print(names[i]);
		}
    	
    }
}
